<?php



class FounditMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.FounditMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('foundit');
		$tMap->setPhpName('Foundit');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('HINICHI', 'Hinichi', 'int', CreoleTypes::DATE, false, null);

		$tMap->addColumn('AREA', 'Area', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('LONGI', 'Longi', 'double', CreoleTypes::DOUBLE, true, null);

		$tMap->addColumn('LATI', 'Lati', 'double', CreoleTypes::DOUBLE, true, null);

		$tMap->addColumn('TYPE', 'Type', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('COLOR', 'Color', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('KEPTIN', 'Keptin', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('FOUNDER_NM', 'FounderNm', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('SONOTA', 'Sonota', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('DELETE_YN', 'DeleteYn', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 